package com.xc.h05.controller.changlongfei;

import com.xc.h05.entity.Publicity;
import com.xc.h05.service.changlongfei.AdvisoryNoticeService;
import com.xc.h05.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/advisoryNotice")
//资讯公告
public class AdvisoryNoticeController {
    @Autowired
    private AdvisoryNoticeService advisoryNoticeService;
    @RequestMapping("/getPublicity")
    public R getPublicity(int pageNum, int pageSize) {
        return R.ok(advisoryNoticeService.getPublicity(pageNum, pageSize));
    }
}
